<div class="modal-header">
    <h4 class="modal-title">奖品广告信息</h4>
</div>
<div class="modal-body">
    <div class="container-fluid form-horizontal ">

<div class="col-xs-12 " >
		<div class="panel-body">
			<div class="container-fluid">
				
				<div class="col-xs-12 col-md-12" >

					<div class="col-md-12 panel panel-default table-responsive">
						<table class="table table-bordered">
						<thead>
						<tr>
							<th class="col-md-2 text-center">选择</th>
							<th class="col-md-2 text-center">企业名称</th>														
							<th class="col-md-2 text-center">广告类型</th>
							<th class="col-md-2 text-center">可见次数</th>
							<th class="col-md-2 text-center">积分数</th>
							<th class="col-md-2 text-center">创建时间</th> 
						</tr>
						</thead>
						<tbody>
						<tr ng-repeat="obj in objs">
							<td class="text-center">
								<input
									bs-switch
									type="checkbox" 
									ng-model="obj.isSelected"
									switch-size="mini"
									ng-change = "onChange(obj.isSelected,obj.corporate_adver_id,obj.relation_id)"
									> 
							</td> 
							<td class="text-center">{{obj.corporate_name}}</td>							         							
							<td class="text-center">
								<p class="" ng-show="obj.type == '0'">关注微信</p>
            					<p class="" ng-show="obj.type == '1'">关注文章</p>
            					<p class="" ng-show="obj.type == '2'">关注图片</p>								
							</td>  
							<td class="text-center">{{obj.num}}</td>
							<td class="text-center">{{obj.integral}}</td>
							
							<td class="text-center">{{obj.create_time}}</td>
						</tr>
						</tbody>
						</table>
					</div>
					<div class="text-right" style="background-color: white">
					<pagination 
						total-items="totalItems" 
						ng-model="currentPage" 
						ng-change="getlist()"
						previous-text="上一页"
						next-text="下一页"
						first-text="首页"
						last-text="尾页"
						max-size="5"
						boundary-links="true"
						rotate="false"

						items-per-page="itemsPerPage"
						class="m-t-none m-b"></pagination>
					</div>            
				</div>	
			</div>
		</div>
	</div>
</div>
<div class="modal-footer">
    <!--<button class="btn btn-primary" type="button" ng-click="ok()">OK</button>-->
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>


